import type { IllnessTime } from '@/enums'
import { timeOptions, flagOptions } from '@/constants'

export const getillnessTimeText = (illnessTime: IllnessTime) => {
  /**
    switch (illnessTime) {
      case IllnessTime.Week:
        return '一周内'
  
      case IllnessTime.Month:
        return '一月内'
  
      case IllnessTime.HalfYear:
        return '半年内'
  
      case IllnessTime.More:
        return '半年以上'
      default:
        break
    }
     */
  return timeOptions.find(item => item.value === illnessTime)?.label
}

export const getConsultFlagText = (consultFlag: 0 | 1) => {
  return flagOptions.find(item => item.value === consultFlag)?.label
}
